package org.itboys.coo.entity.mongo.account;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Created on 2017/11/29.
 * @author 朱坤涛
 * 银行账户
 */
@Entity(value="SundayAccount", noClassnameStored=true)
public class SundayAccount extends BaseMongoEntity{
    private Long memberId;//用户ID
    private String bankName;//开户银行（例如：华夏银行，支付宝）
    private Integer type; //类型 1，银行卡 2，支付宝 3，微信
    private String name;//账号姓名
    private String accountNumber;//账号
    private String picture;//银行图片
    private Integer isDefault;//是否默认账户，新增时是默认
    private String subBankName;//开户支行
    private String mobile;//手机号

    public SundayAccount() {
    }

    public SundayAccount(Long memberId, String bankName, Integer type, String name, String accountNumber, String picture, Integer isDefault, String mobile) {
        this.memberId = memberId;
        this.bankName = bankName;
        this.type = type;
        this.name = name;
        this.accountNumber = accountNumber;
        this.picture = picture;
        this.isDefault = isDefault;
        this.mobile = mobile;
    }

    public SundayAccount(String bankName, Integer type, String name, String accountNumber, String picture, String mobile) {
        this.bankName = bankName;
        this.type = type;
        this.name = name;
        this.accountNumber = accountNumber;
        this.picture = picture;
        this.mobile = mobile;
    }

    public Long getMemberId() {return memberId;}

    public void setMemberId(Long memberId) {this.memberId = memberId;}

    public String getBankName() {return bankName;}

    public void setBankName(String bankName) {this.bankName = bankName;}

    public Integer getType() {return type;}

    public void setType(Integer type) {this.type = type;}

    public String getName() {return name;}

    public void setName(String name) {this.name = name;}

    public String getAccountNumber() {return accountNumber;}

    public void setAccountNumber(String accountNumber) {this.accountNumber = accountNumber;}

    public String getPicture() {return picture;}

    public void setPicture(String picture) {this.picture = picture;}

    public Integer getIsDefault() {return isDefault;}

    public void setIsDefault(Integer isDefault) {this.isDefault = isDefault;}

    public String getSubBankName() {return subBankName;}

    public void setSubBankName(String subBankName) {this.subBankName = subBankName;}

    public String getMobile() {return mobile;}

    public void setMobile(String mobile) {this.mobile = mobile;}
}
